#include "Budget.h"

Budget::Budget(double monthlyLimit)
: monthlyLimit_(monthlyLimit), currentBalance_(monthlyLimit) {}

void Budget::addExpense(double amount) {
	if (amount > 0) {
		currentBalance_ -= amount;
	}
}

double Budget::getCurrentBalance() const {
	return currentBalance_;
}

void Budget::resetMonth() {
	currentBalance_ = monthlyLimit_;
}